﻿using Microsoft.Extensions.DependencyInjection;

namespace WebApiOrm.Provider
{
    /// <summary>
    /// 定义orm创建者的接口
    /// </summary>
    public interface IOrmBuilder
    {
        /// <summary>
        /// db类型
        /// </summary>
        DatabaseType DatabaseType { get; }

        /// <summary>
        /// 连接字符串
        /// </summary>
        string ConnectionString { get; }

        /// <summary>
        /// 获取服务集合
        /// </summary>
        IServiceCollection Services { get; }
    }
}
